<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script language="javascript"  type="text/javascript">
function toggleCheckbox(id) {
    document.getElementById(id).checked = !document.getElementById(id).checked;
}

</script>
</head>
<body>
<center>
<table width="1000px" border=1 cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top">
		<!-- START RIGHT MENU PAGE -->
		<%@include file="rightMenu.jsp" %>
		<!-- END RIGHT MENU PAGE -->
		</td>
		<td valign="top">
		<!-- START CONTENT PAGE -->
			<form action="/EfrAdm/Op4Comentariu.do" method="post">
			
			<table cellpadding="0" cellspacing="0" border="1">
					<tr>
						<td colspan="8" align="center">
							<input type="submit" value="Modifica" name="Modifica">&nbsp;
							<input type="submit" value="Sterge" name="Sterge">&nbsp;
							<input type="submit" value="Adauga" name="Adauga">
						</td>
					</tr>
				<c:forEach items="${listComentarii }" var="comentariu">
					<tr>
						<td>${comentariu.poezie.titlu }</td>
						<td>${comentariu.nume }</td>
						<td>${comentariu.mail }</td>
						<td>${comentariu.website }</td>
						<td onclick="toggleCheckbox(${comentariu.id })">${comentariu.comment }</td>
						<td>${comentariu.status }</td>
						<td>${comentariu.ip }</td>
						<td>${comentariu.dataComment }</td>
						<td><input type="checkbox" id="${comentariu.id }" name="id" value="${comentariu.id }"></td>
					</tr>
				</c:forEach>
			</table>
			</form>
		<!-- END CONTENT PAGE -->
		</td>
	</tr>
</table>
</center>
</body>
</html>